<?php
/* @file show-validator.php
 * @author YangHuanFLC
 * @description php interface for show validator
 */

require_once("helper.php");
if(!InGroup(GROUP_SHOW_VOLUME)){
	MsgBox(ACCESS_DENIED);
	exit();
}
try{

		$dwoo=new Dwoo();
		$tpl=new Dwoo_Template_File('template/show-validator.tpl');
		$data=new Dwoo_Data();
		
		$bean=R::findAndExport("validator","");

		$data->assign('validators', $bean);
		$dwoo->output($tpl,$data);
	}
	catch(Exception $e)
	{
		OJLog("Error in show-validator.php invoking Dwoo:". $e->getMessage());
	}
?>